package com.cybertron.ironhide.manage.service;

import java.util.List;
import java.util.Map;

import com.cybertron.ironhide.manage.common.base.Pager;
import com.cybertron.ironhide.manage.domain.Category;

public interface CategoryService {

	List<Category> selectRootCategories();

	List<Category> selectChildsByParentId(String id, Pager pager);

	void insertSelective(Category record);

	List<Category> selectByParentId(String id, Pager pager);

	Category selectByPrimaryKey(String id);

	void updateByPrimaryKeySelective(Category record);

	void deleteByPrimaryKey(String id);

	void insertTaskSelective(String id);

	List<Category> selectByLevel(Integer level);

	List<Category> selectByIndex();

	List<Map<String, String>> selectSuggest(String title, Integer limit);

}
